import {ObjectDto, ObjectDtoInterface} from "../../services/sqliteDB/object.dto";
import { TableColumnType } from "../../services/sqliteDB/object.dto";
import {SyncStatus} from "../sync-status";


export class AttachmentDto extends ObjectDto implements ObjectDtoInterface {
    public id: string = null;
    public thumbnailId: string = null; // 缩略图Id
    public attachmentName: string = null; // 附件名
    public path: string = null; // 附件路径
    public syncStatus: SyncStatus = SyncStatus.None; // 编号


    table() {
        return {
            tableName: "Attachment",
            tableConstructor: {
                id: `${TableColumnType.text}`,
                thumbnailId: TableColumnType.text,
                attachmentName: TableColumnType.text,
                path: TableColumnType.text,
                syncStatus: TableColumnType.int,
            }
        };
    }

}



